package com.bcbim.operation_maintenance.space_occupy.service;

import com.bcbim.operation_maintenance.space_occupy.mapper.SpaceOccupyMapper;
import com.bcbim.operation_maintenance_interface.space_occupy.dto.SpaceOccupyDTO;
import com.bcbim.operation_maintenance_interface.space_occupy.service.SpaceOccupyService;
import com.bcbim.operation_maintenance_interface.space_occupy.vo.SpaceStaffOccupyVO;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Description: 空间占用service实现类
 * @Author lihonggang
 * @Date 2022/04/28  13:55
 * @Version V1.0
 **/
@Service(timeout = 60 * 1000, group = "spaceOccupy", version = "1.0.0")
public class SpaceOccupyServiceImpl implements SpaceOccupyService {

    @Autowired
    private SpaceOccupyMapper spaceOccupyMapper;
    /**
     * @param spaceOccupyDTO
     * @Description: 空间占用人员列表
     * @Date: 2022/4/28 11:26
     * @Param: [spaceOccupyDTO]
     * @return: java.util.List<com.bcbim.model_interface.space_occupy.vo.SpaceStaffOccupyVO>
     * @Author: lihonggang
     */
    @Override
    public List<SpaceStaffOccupyVO> listSpaceStaffOccupy(SpaceOccupyDTO spaceOccupyDTO) {
        return spaceOccupyMapper.listSpaceStaffOccupy(spaceOccupyDTO);
    }

    /**
     * @param spaceOccupyDTO
     * @Description: 空间占用人员列表总数
     * @Date: 2022/4/28 13:51
     * @Param: [spaceOccupyDTO]
     * @return: int
     * @Author: lihonggang
     */
    @Override
    public int listSpaceStaffOccupyCount(SpaceOccupyDTO spaceOccupyDTO) {
        return spaceOccupyMapper.listSpaceStaffOccupyCount(spaceOccupyDTO);
    }
}
